using System;

using LocalBoard.Domain;

namespace LocalBoard.Controller
{
	/// <summary>
	/// Summary description for ClubBoardSecurity.
	/// </summary>
	public class ClubBoardSecurity : BoardSecurity
	{
		public ClubBoardSecurity(ClubController clubController) : base(null, clubController)
		{}
		public ClubBoardSecurity(ClubController clubController, Profile user) : base(null, clubController, user)
		{}

		public override bool CanUserAccessBoard(Profile user)
		{
			//TODO: ** Let club user access this combined board but limit access to special boards **
			if(ClubController.GetClubSecurity().CanUserAccessClub(user))
				return true;
			else
				return false;
		}

		public override bool CanUserDeleteComment(Profile user, Comment comment)
		{
			return false;
		}

		public override bool CanUserDeleteMessage(Profile user, Message message)
		{
			return false;
		}

		public override bool CanUserPostMessage(Profile user)
		{
			return false;
		}

	}
}
